package com.yan.arrays;

import java.util.Arrays;

public class Test {
    public static void main(String[] args) {
        int[] arr1 = {1, 2, 3, 4, 5};
        int[] arr2 = {1, 1, 3};
        boolean equals = MyArrays.equals(arr1, arr2);
        System.out.println(equals);
        /*MyArrays.fill(arr1, 100);
        System.out.println("-------------");
        for (int i = 0; i < arr1.length; i++) {
            System.out.print(arr1[i] + " ");
        }*/
        System.out.println("-------------");
       /* MyArrays.fill(arr1 , 2 , 5, 100);
        for (int i = 0; i < arr1.length; i++) {
            System.out.print(arr1[i] + " ");
        }*/
       /* int[] copy = MyArrays.copyOf(arr1, 3);
        System.out.println(Arrays.toString(copy));*/
        int[] copyOfRange = MyArrays.copyOfRange(arr1, 2, 5);
        System.out.println(Arrays.toString(copyOfRange));
    }
}
